package cn.xmy.demo01.service.impl;


import cn.xmy.demo01.dao.TypeDao;
import cn.xmy.demo01.pojo.Type;
import cn.xmy.demo01.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
import java.util.List;
@Service
public class TypeServiceImpl implements TypeService {
    @Autowired
    TypeDao typeDao;
    @Override
    public List<Type> getStar() throws SQLException, ClassNotFoundException {
        return typeDao.getStar();
    }

    @Override
    public List<Type> getEquip() throws SQLException, ClassNotFoundException {
        return typeDao.getEquip();
    }

    @Override
    public List<Type> getAttribute() throws SQLException, ClassNotFoundException {
        return typeDao.getAttribute();
    }

    @Override
    public List<Type> getObtain() throws SQLException, ClassNotFoundException {
        return typeDao.getObtain();
    }
}
